<%-- 
    Document   : technicianHome
    Created on : Oct 21, 2013, 2:14:56 AM
    Author     : h10t93
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form name="frm" method="POST">
            <c:if test="${sessionScope.nameTechnician != null}">
                <font color="red">
                ${sessionScope.nameTechnician}</font><br/>
                <a href="ManageServlet?action=logout">Logout</a>
            </c:if>
            <c:if test="${sessionScope.nameTechnician == null}">
                <a href="managerLogin.jsp">login</a>
            </c:if>
            <table border="1">
                <tr>
                    <th>ID</th>
                    <th>ID Complaint</th>
                    <th>Title Complaint</th>
                    <th>Content</th>
                    <th>Priority</th>
                    <th>Date</th>
                </tr>
                <c:forEach var="p" items="${sessionScope['staffViewListComp']}">
                    <tr>
                        <td>${p.wordID}</td>
                        <td>${p.compID}</td>
                        <td>${p.compTitle}</td>
                        <td>${p.content}</td>
                        <td>${p.priority}</td>
                        <td>${p.date}</td>
                        <td><input type="submit" value="Select" onclick="frm.action='ManageServlet?action=selectToResolve&idWordResolved=${p.wordID}&idCompResolve=${p.compID}'"/></td>
                    </tr>
                </c:forEach>
            </table>
        </form>
    </body>
</html>
